package com.fjec.common.eventbus.event;

import lombok.Data;

import java.util.Map;

/**
 * 记录方法执行时间的事件对象
 */
@Data
public class RunTimeLogEvent {

    private String threadName;
    private String className;
    private String methodName;
    private Map<String, Object> argsMap;
    private String argsJson;
    private long startTime;
    private long elapsedTime;

    @Override
    public String toString() {
        return "RunTimeLogEvent{" +
                "threadName='" + threadName + '\'' +
                ", className='" + className + '\'' +
                ", methodName='" + methodName + '\'' +
                ", argsJson='" + argsJson + '\'' +
                ", startTime=" + startTime +
                ", elapsedTime=" + elapsedTime +
                '}';
    }

}
